<style lang='less'>

</style>

<template>
  <div>
      <rong-cloud-im :login-account="account"></rong-cloud-im>
  </div>
</template>

<script>
import RongCloudIm from '_c/rong-cloud-im'
export default {
  components: {
    RongCloudIm
  },
  data () {
    return {
      serverResult: '',
      account: ''
    }
  },
  methods: {
    retFun (data) {
      console.log(data, '返回的信息')
      this.serverResult = JSON.stringify(data)
    }
  },
  mounted () {
    let severUserInfo = this.$store.state.user.severUserInfo
    this.account = severUserInfo.loginName
    console.log(severUserInfo, '在全局状态里面取到用户登录的信息')
  }
}
</script>

<style>

</style>
